package Maps;

public class Main
{

	ConcurrentBucketHashMap map = new ConcurrentBucketHashMap(1);
	
	class TestThread extends Thread
	{
		public TestThread()
		{
			
		}
		public void run()
		{
			for (int i = 0; i < 100; i++)
			{
				double num = Math.random();
				if (num > 0.5)
				{
					map.put(i, num);
				}
				else
				{
						map.get(0);
					
				}
			}
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		Main test = new Main();
		Main.TestThread t1 = test.new TestThread();
		Main.TestThread t2 = test.new TestThread();
		Main.TestThread t3 = test.new TestThread();
		Main.TestThread t4 = test.new TestThread();
//		TestThread t5 = new TestThread();
//		TestThread t6 = new TestThread();
//		TestThread t7 = new TestThread();
//		TestThread t8 = new TestThread();
//		TestThread t9 = new TestThread();
//		TestThread t10 = new TestThread();
//		TestThread t11 = new TestThread();
//		TestThread t12 = new TestThread();
//		TestThread t13 = new TestThread();
//		TestThread t14 = new TestThread();
//		TestThread t15 = new TestThread();
//		TestThread t16 = new TestThread();
		t1.start();
		t2.start();
		t3.start();
		t4.start();
//		t5.start();
//		t6.start();
//		t7.start();
//		t8.start();
//		t9.start();
//		t10.start();
//		t11.start();
//		t12.start();
//		t13.start();
//		t14.start();
//		t15.start();
//		t16.start();
		
	}

}
